3.94 \(\int \sqrt{a+a \sec (c+d x)} \, dx\)

Optimal. Leaf size=37 \[ \frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

[Out]

(2*Sqrt[a]*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d

________________________________________________________________________________________

Rubi [A]  time = 0.0226566, antiderivative size = 37, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3774, 203} \[ \frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a \sec (c+d x)+a}}\right )}{d} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(2*Sqrt[a]*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d

Rule 3774

Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*b)/d, Subst[Int[1/(a + x^2), x], x, (b*C
ot[c + d*x])/Sqrt[a + b*Csc[c + d*x]]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \sqrt{a+a \sec (c+d x)} \, dx &=-\frac{(2 a) \operatorname{Subst}\left (\int \frac{1}{a+x^2} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ &=\frac{2 \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{d}\\ \end{align*}

Mathematica [A]  time = 0.0943218, size = 60, normalized size = 1.62 \[ \frac{\sqrt{2} \sin ^{-1}\left (\sqrt{2} \sin \left (\frac{1}{2} (c+d x)\right )\right ) \sqrt{\cos (c+d x)} \sec \left (\frac{1}{2} (c+d x)\right ) \sqrt{a (\sec (c+d x)+1)}}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[a + a*Sec[c + d*x]],x]

[Out]

(Sqrt[2]*ArcSin[Sqrt[2]*Sin[(c + d*x)/2]]*Sqrt[Cos[c + d*x]]*Sec[(c + d*x)/2]*Sqrt[a*(1 + Sec[c + d*x])])/d

________________________________________________________________________________________

Maple [B]  time = 0.139, size = 89, normalized size = 2.4 \begin{align*} -{\frac{\sqrt{2}}{d}\sqrt{{\frac{a \left ( \cos \left ( dx+c \right ) +1 \right ) }{\cos \left ( dx+c \right ) }}}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}{\it Artanh} \left ({\frac{\sqrt{2}\sin \left ( dx+c \right ) }{2\,\cos \left ( dx+c \right ) }\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sec(d*x+c))^(1/2),x)

[Out]

-1/d*2^(1/2)*(a*(cos(d*x+c)+1)/cos(d*x+c))^(1/2)*(-2*cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*arctanh(1/2*2^(1/2)*(-2*
cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)/cos(d*x+c))

________________________________________________________________________________________

Maxima [B]  time = 1.82355, size = 197, normalized size = 5.32 \begin{align*} \frac{\sqrt{a} \arctan \left ({\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )}^{\frac{1}{4}} \sin \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right ) + \sin \left (d x + c\right ),{\left (\cos \left (2 \, d x + 2 \, c\right )^{2} + \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )}^{\frac{1}{4}} \cos \left (\frac{1}{2} \, \arctan \left (\sin \left (2 \, d x + 2 \, c\right ), \cos \left (2 \, d x + 2 \, c\right ) + 1\right )\right ) + \cos \left (d x + c\right )\right )}{d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

sqrt(a)*arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2
*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + sin(d*x + c), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2
*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) + cos(d*x + c))/d

________________________________________________________________________________________

Fricas [A]  time = 1.73095, size = 350, normalized size = 9.46 \begin{align*} \left [\frac{\sqrt{-a} \log \left (\frac{2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt{-a} \sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right )}{d}, -\frac{2 \, \sqrt{a} \arctan \left (\frac{\sqrt{\frac{a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt{a} \sin \left (d x + c\right )}\right )}{d}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

[sqrt(-a)*log((2*a*cos(d*x + c)^2 - 2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x +
c) + a*cos(d*x + c) - a)/(cos(d*x + c) + 1))/d, -2*sqrt(a)*arctan(sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(
d*x + c)/(sqrt(a)*sin(d*x + c)))/d]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sec{\left (c + d x \right )} + a}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(a*sec(c + d*x) + a), x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError